//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package core

type SearchEntry struct {
	Title   string `json:"title"`
	Url     string `json:"url"`
	Summary string `json:"summary"`
}

type PageParser interface {
	MatchUrl(url string) bool
	Parse(url string) ([]*SearchEntry, error)
}
